<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>欢迎光临</h1>

    <script>
        // 获取本地存储中的数据，根据需求，发起相关的异步请求
        let obj = JSON.parse(sessionStorage.getItem("username")) ;
        

        console.log("帐号："+obj.username);
        console.log("年龄"+obj.age);
        console.log("年龄"+obj.sex);

        // 用完，建议删除
        //localStorage.removeItem("username") ;
        //localStorage.removeItem("userage") ;

    </script>
</body>
</html>